import { Input } from "element-ui";
import http from '../index'
///////企业人员管理和人员管理页面共用
export const getUser = (data) => http({
  url: '/api/user/getUser',
  method: 'post',
  data,
})
export const addUser = (data) => http({
  url: '/api/user/addUser',
  method: 'post',
  data,
});
export const updateUser = (data) => http({
  url: '/api/user/updateUser',
  method: 'put',
  data,
});
export const deleteUser = (params) =>
  http({
    url: "/api/user/?" + params,
    method: "delete",
  });
//批量启用或删除
export const updateBatchUser = (data) =>
  http({
    url: "/api/user/updateStatus",
    method: "put",
    data,
  });
//批量删除
export const deleteBatchUser = (data) =>
  http({
    url: "/api/user/deleteBatch",
    method: "delete",
    data,
  });
//////用户管理
//用户列表
export const listUser = (data) => http({
  url: '/api/user/listUser',
  method: 'post',
  data,
})
export const getRoles = () => http({
  url: '/api/user/getRoles',
  method: 'get',
})